package com.aihwcm.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


public class TreeNode  implements java.io.Serializable {


	private static final long serialVersionUID = 375471742830480807L;
	private Integer id;
	private Integer pId;
	private String name;
	private String open;

	/** default constructor */
    public TreeNode() {
    }
    
    /** full constructor */
    public TreeNode(Integer id, Integer pId, String name, String open) {
        this.id = id;
        this.pId = pId;
        this.name = name;
        this.open = open;
    }

    public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getpId() {
		return pId;
	}

	public void setpId(Integer pId) {
		this.pId = pId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getOpen() {
		return open;
	}

	public void setOpen(String open) {
		this.open = open;
	}
}